<?php
require_once dirname(__FILE__) . '/login/LoginController.php';
require_once dirname(__FILE__) . '/users/UsersController.php';
require_once dirname(__FILE__) . '/common/Database.php';

class MasterController {
	public function DoController() {
		$db = new Database();
		$db->Connect(new DBConfig());
		$lh = new LoginHandler($db);
		
		$lc = new LoginController($db, $lh);
		$uc = new UsersController($db, $lh);
		
		$html = '';		
		$html .= $lc->DoController();
		$html .= $uc->DoController();
		$db->Close();
		
		return $html;
	}
}